﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Topshelf;

namespace TopQuartz
{
    class Program
    {
        static void Main(string[] args)
        {
            HostFactory.Run(x =>
            {
                x.Service<ServiceRunner>();

                x.SetServiceName(ServiceConfig.Default.ServiceName);
                x.SetDisplayName(ServiceConfig.Default.ServiceDisplayName);
                x.SetDescription(ServiceConfig.Default.ServiceDescription);

                x.RunAsLocalSystem();
                x.EnablePauseAndContinue();
                x.EnableShutdown();
            });
        }
    }
}
